<# # It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description: Script is designed To Add Windows Edition and Build Watermark on Desktop for Current User # Configuration Type - USER # Refer : https://www.elevenforum.com/t/add-or-remove-windows-edition-and-build-watermark-on-desktop.16728/ # Note : If the registry was changed but not effective, please advise the user to contact Windows Support. #> $path = "HKCU:\Control Panel\Desktop" $Name = "PaintDesktopVersion" # Change the mode value in the below area $valuedata = 1 # Check if the registry path exists if (-not (Test-Path $path)) { # Create the registry path if it does not exist New-Item -Path $path -Force Write-Host "Registry path '$path' created." } else { Write-Host "Registry path '$path' already exists." } # Create or update the registry value as a DWORD if (-not (Get-ItemProperty -Path $path -Name $Name -ErrorAction SilentlyContinue)) { New-ItemProperty -Path $path -Name $Name -Value $valuedata -PropertyType DWord -Force Write-Host "Registry value '$Name' created with value $valuedata (DWORD)." } else { Set-ItemProperty -Path $path -Name $Name -Value $valuedata Write-Host "Registry value '$Name' updated to $valuedata." }